package com.example.mqltest.dao;

import com.example.mqltest.entity.Work;
import com.example.mqltest.entity.WorkList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WorkDao {
    List<Work> getWorkByCode(@Param( "code" )String code);

    Work getWorkById(@Param( "workId" )int workId);

    void deleteWorkFile(@Param( "fileId" ) int fileId);

    void correctWork(@Param( "workId" ) int workId,@Param( "studentId" ) String studentId,@Param( "status" ) String status,@Param( "grade" )int grade);

    List<String> getNum(@Param( "id" ) int id,@Param( "status")String status);

    WorkList getStudentWork(@Param( "workId")int workId,@Param( "studentId" ) String studentId);
}
